package com.gxa.hualianeshop.service.impl;

import com.gxa.hualianeshop.dao.BannerDao;
import com.gxa.hualianeshop.entity.pojo.Banner;
import com.gxa.hualianeshop.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;


import java.util.List;

/**
 * @author bill
 * @date 2023/7/19 16:25
 */
//@Service
@com.alibaba.dubbo.config.annotation.Service
public class BannerServiceImpl implements BannerService {

    @Autowired
    private BannerDao bannerDao;

    @Override
    public List<Banner> getAllByPosition(String position) {
        Banner bannerDto = new Banner();
        bannerDto.setPosition(position);
        return bannerDao.selectAll(bannerDto);
    }
}
